# -*- coding:utf-8 -*-
# @Author: shenyuyu
# @Time: 2023/6/12 11:27
# @File: qu_8.py

# 输入任意一个正整数，求他是几位数？注意: 这儿不能使用字符串，只能用循环

sum = int(input("请输入一个正整数"))
a = 0
while sum > 1:
    if sum / 10 > 1:
        a += 1
    sum = sum / 10
a += 1
print("这个数是%d位数" % a)
